package com.lwz.startdemo.recyclerview

import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.lwz.startdemo.R

sealed class MsgViewHolder(view: View): RecyclerView.ViewHolder(view) {

    class LeftViewHolder(view: View): MsgViewHolder(view){
        val leftMsg = view.findViewById<TextView>(R.id.tvContent)
    }

    class RightViewHolder(view:View):MsgViewHolder(view){
        val rightMsg = view.findViewById<TextView>(R.id.tvContent)
    }

}